import random
winning_numbers = random.sample(range(1, 34), 8)
user_numbers = []
a = 0
b = 0
c = 0
d = 0
e = 0
for i in range(8):
    number = int(input("请输入第{}个数字：".format(i+1)))
    user_numbers.append(number)
for i in range(10000):

    for i in range(8):
        correct_count = 0
        if user_numbers[i] == winning_numbers[i]:
            correct_count += 1
    if correct_count == 8:
        a = a+1
    elif correct_count == 7:
        b = b+1
    elif correct_count == 6:
        c = c+1
    elif correct_count == 5:
        d = d+1
    else:
        e = e+1
print(a)
print(b)
print(c)
print(d)
print(e)